
export const state = () => {
  return {
    list: []
  }
}

export const mutations = {
  SET_LIST(state, val) {
    state.list = val
  }
}

export const actions = {
  async getClassify({ commit }) {//获取数据
    const {data}= await this.$axios.get(
      'classify/classifyList?pageSize=10'
    );
    console.log(data.data);
    commit("SET_LIST", data.data)
  }
}

export const getters = {
}